package etnorservice.etnor_service.service;

import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/08/04/16:03
 **/
@Service
public class RepositoryService {
    public CommitStatus getRepositoryStatus(String name) {
        // 这里应该是调用 Git API 获取仓库信息和最近的提交记录
        // 并将这些信息保存到数据库中
        // 返回最近的提交记录
        return new CommitStatus("Commit Message", "Author Name", "Author Email", "Commit Date");
    }
}
